<?php

/***

LZRoster: A roster for World of Warcraft.
Copyright (C) 2007  Emmanuel Cron

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

***/

require_once "class/Load.class.php";
require_once "class/Config.class.php";
require_once "class/StatusRoster.class.php";
require_once "class/Localization.class.php";

$load = Load::GetInstance();
$config = Config::GetInstance();
$localization = Localization::GetInstance();
$status_roster = StatusRoster::GetInstance();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
	<head>
		<title>LZRoster<?php echo $config->HasRosterTitle() ?  " - ".$config->GetRosterTitle() : null; ?></title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<link rel="stylesheet" media="screen" type="text/css" href="styles/_.css" />
	</head>
	<body>
		
		<?php require_once "inc/head.php"; ?>
		<?php require_once "inc/hmenu.php"; ?>
		
		<h2><?php echo $localization->Get('addon information'); ?></h2>
		
		<?php
		if ($status_roster->HasMessage())
		{
		?>
			
			<p>
				<?php echo $localization->Get('this page produced some messages. please refer to the following lines'); ?>
			</p>
			
			<?php echo $status_roster->GetStack_InList(); ?>
			
			<p>
				<?php echo $localization->Get('you can refresh the page %s and try again', "addon.php"); ?>
			</p>
			
		<?php
		}
		else
		{
		?>
		
		<p>
			<img src="img/ace2_logo.gif" alt="Ace2 logo" style="float: left;" />	
		
			<?php echo $localization->Get('in order to make the file, you must install an addon that works that way (...)'); ?>
		</p>
		
		<p>
			<?php echo $localization->Get('lzprofiler is really discrete but you have to open your tradeskills (...)'); ?>
		</p>
		
		<h3><?php echo $localization->Get('download'); ?></h3>
		
		<ul>
			<li><?php echo $localization->Get('check lzprofiler in %s wowaceupdater and install it', "http://www.wowace.com/wiki/WowAceUpdater"); ?></li>
			<li><?php echo $localization->Get('you can also download the addon %s here if you do not wish to use wowaceupdater', "http://files.wowace.com/LZProfiler/LZProfiler.zip"); ?></li>
		</ul>
		
		<h3><?php echo $localization->Get('using the lzprofiler'); ?></h3>
		
		<p>
			<?php echo $localization->Get('the addon is completely invisible and saves all data in background (...)'); ?>
		</p>
		<p>
			<?php echo $localization->Get('however it is not possible to automatically save the tradeskills so you have (...)'); ?>
		</p>
		<p>
			<?php echo $localization->Get('to correctly save a character'); ?>
		</p>
		
		<ol>
			<li><?php echo $localization->Get('login with your character'); ?></li>
			<li><?php echo $localization->Get('open your tradeskills at least once'); ?></li>
			<li><?php echo $localization->Get('if the addon warns you that you need to (...)'); ?></li>
			<li><?php echo $localization->Get('logout. this step is essential (...)'); ?></li>
		</ol>
		<p>
			<?php echo $localization->Get('if you want to update more than one character (...)'); ?>
		</p>
		
		<h3><?php echo $localization->Get('new installs and patchs'); ?></h3>
		
		<p>
			<?php echo $localization->Get('just after a new install, the addon may ask you to open and close several (...)'); ?>
		</p>
		
		<?php
		}
		?>
		
		<?php require_once "inc/foot.php"; ?>
		
	</body>
</html>